function [ tStart ] = InitializeDiary( name )
%INITIALIZEDIARY Starts a log file that records all output

tStart = tic;
diary off
delete([getpref('ECoG', 'Logs') name '.txt']);
diary([getpref('ECoG', 'Logs') name '.txt']);
end